﻿

namespace FlexPlatform.Shared.Events
{
    using System;

    public class BeforeProperyChangeEventArgs : CancellableEventArgs, IBeforeProperyChangeEventArgs
    {
        public BeforeProperyChangeEventArgs(object sender, string propertyName, object currentValue, object proposedValue)
            : base(sender)
        {
            this.PropertyName = propertyName;
            this.CurrentValue = currentValue;
            this.ProposedValue = proposedValue;
        }

        public string PropertyName { get; private set; }

        public object CurrentValue { get; private set; }

        public object ProposedValue { get; private set; }
    }
}
